home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_1.lha / 3_1 / 3_1.c next >
C/C++ Source or Header  |  1993-08-08  |  365b  |  20 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5.    int i = 0;
  6.    while (i < max_length)
  7.        {
  8. if (input_line[i] == '?')
  9.     quest_count++;
  10. i++;
  11. }    
  12.  
  13.    char *p = input_line;
  14.    while (p < &input_line[max_length])
  15.        {
  16.        if (*p=='?')
  17.     quest_count++;
  18. p++;
  19. }
  20.